quartz: Compare visuals for RGBA, not colormaps
authorBenjamin Otte <otte@redhat.com>
Sun, 29 Aug 2010 00:16:27 +0000 (02:16 +0200)
committerBenjamin Otte <otte@redhat.com>
Sun, 26 Sep 2010 13:11:33 +0000 (15:11 +0200)
gdk/quartz/GdkQuartzView.c

index 656f8e21a890442fa2e7733d15c2ee473f73f31b..8c6132b2abc9548c22880484b6fe3a23728aa251 100644 (file)
@@ -61,8 +61,8 @@
   if (GDK_WINDOW_DESTROYED (gdk_window))
     return YES;
 
-  /* A view is opaque if its GdkWindow doesn't have the RGBA colormap */
-  return gdk_drawable_get_colormap (gdk_window) != gdk_screen_get_rgba_colormap (_gdk_screen);
+  /* A view is opaque if its GdkWindow doesn't have the RGBA visual */
+  return gdk_window_get_visual (gdk_window) != gdk_screen_get_rgba_visual (_gdk_screen);
 }
 
 -(void)drawRect:(NSRect)rect